$OpenBSD: patch-chrome_browser_ui_views_frame_opaque_browser_frame_view_cc,v 1.12 2015/07/23 13:44:04 robert Exp $
--- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc.orig.port	Wed Jul 15 22:29:58 2015
+++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc	Wed Jul 22 08:37:29 2015
@@ -53,7 +53,7 @@
 #include "chrome/browser/ui/views/profiles/supervised_user_avatar_label.h"
 #endif
 
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
 #include "ui/views/controls/menu/menu_runner.h"
 #endif
 
@@ -78,7 +78,7 @@ const int kContentEdgeShadowThickness = 2;
 // The icon never shrinks below 16 px on a side.
 const int kIconMinimumSize = 16;
 
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_BSD) || (defined(OS_LINUX) && !defined(OS_CHROMEOS))
 // The number of pixels to move the frame background image upwards when using
 // the GTK+ theme and the titlebar is condensed.
 const int kGTKThemeCondensedFrameTopInset = 15;
@@ -333,7 +333,7 @@ void OpaqueBrowserFrameView::ButtonPressed(views::Butt
 
 void OpaqueBrowserFrameView::OnMenuButtonClicked(views::View* source,
                                                  const gfx::Point& point) {
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   views::MenuRunner menu_runner(frame()->GetSystemMenuModel(),
                                 views::MenuRunner::HAS_MNEMONICS);
   ignore_result(menu_runner.RunMenuAt(browser_view()->GetWidget(),
@@ -619,7 +619,7 @@ void OpaqueBrowserFrameView::PaintMaximizedFrameBorder
   frame_background_->set_theme_image(GetFrameImage());
   frame_background_->set_theme_overlay_image(GetFrameOverlayImage());
   frame_background_->set_top_area_height(GetTopAreaHeight());
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_BSD) || (defined(OS_LINUX) && !defined(OS_CHROMEOS))
   // The window manager typically shows a gradient in the native title bar (when
   // the system title bar pref is set, or when maximized on Ubuntu). Hide the
   // gradient in the tab strip (by shifting it up vertically) to avoid a
